package vns.client.event;

import java.util.List;

import vns.shared.LoginInfo;
import vns.shared.ObjectDTO;
import vns.shared.ObjectPropertyDTO;
import vns.shared.ObjectTypeDTO;

import com.google.gwt.event.shared.GwtEvent;

public class AccountEvent extends GwtEvent<AccountEventHandler> {

	public static Type<AccountEventHandler> TYPE = new Type<AccountEventHandler>();
	String operation=null;
	public AccountEvent(String operation) {
		this.operation = operation;
	}

	@Override
	public Type<AccountEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(AccountEventHandler handler) {
		handler.onLogin(this);
	}

	public String getOperation() {
		return operation;
	}

	public void setOperation(String operation) {
		this.operation = operation;
	}

}
